import request from '@/utils/request'

/**
 * 获取授课教师列表
 * @param {Object} data
 * courseId 课程ID
 */
export function selectCourseTeachList(data) {
  return request({
    url: '/course/teach/selectCourseTeachList',
    method: 'post',
    data
  })
}

/**
 * 获取授课教师列表
 * @param {Object} data
 * courseTeachId  授课ID
 * courseId 课程ID
 * courseCatalogId  课程章节ID
 */
export function startCourseTeach(data) { // 开始授课
  return request({
    url: '/course/teach/startCourseTeach',
    method: 'post',
    data
  })
}

/**
 * 获取授课教师列表
 * @param {Object} data
 * courseTeachId  授课ID
 * courseId 课程ID
 * courseCatalogId  课程章节ID
 */
export function endCourseTeach(data) { // 结束授课
  return request({
    url: '/course/teach/endCourseTeach',
    method: 'post',
    data
  })
}

/**
 * 获取授课教师列表
 * @param {Object} data
 * courseTeachId  备课ID
 * courseId 课程ID
 * courseCatalogId  课程章节ID
 */
export function startLessonPreparation(data) { // 备课开始时间
  return request({
    url: '/course/teach/attend/endCourseTeach',
    method: 'post',
    data
  })
}

export function attendCourseLsit(data) { // 获取授课课程列表，目前不用到
  return request({
    url: '/course/teach/attend/pageCourseLsit',
    method: 'post',
    data
  })
}
